import request from '@/utils/request'

export function getTestList() {
  return request({
    url: '/test/getTestList',
    method: 'get',
  })
}
export function deleteTest(id) {
  return request({
    url: `/test/deleteTest/${id}`,
    method: 'delete',
  })
}

export function publishTest(data) {
  return request({
    url: `/test/publishTest`,
    method: 'post',
    data
  })
}

export function getTestDetailList(params) {
  return request({
    url: `/test/getTestDetailList`,
    method: 'get',
    params
  })
}
export  function submitTest(data) {
  return request({
    url: `/test/submitTest`,
    method: 'post',
    data
  })
}
export  function resubmitTest(data) {
  return request({
    url: `/test/resubmitTest`,
    method: 'post',
    data
  })
}
export  function getCheckList(id) {
  return request({
    url: `/test/admin/getCheckTest/${id}`,
    method: 'get',
  })
}
export  function giveScore(data) {
  return request({
    url: `/test/admin/giveScore`,
    method: 'post',
    data
  })
}
